home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1999 October
/
PCWorld_1999-10_cd1.bin
/
Software
/
Servis
/
X-setup
/
_SETUP.1
/
XQ CoolSwitch Settings.xpl
< prev
next >
Wrap
Text File
|
1999-06-11
|
2KB
|
75 lines
"FILE"="Xteq Systems X-Setup Plugin 3.1"
"TYPE"="2"
"COUNT"="2"
"UIPATH"="Appearance\General\Cool Switch"
"NAME"="Settings"
"LANGUAGE"="VBScript"
"TEXT 1"="Columns"
"TEXT 2"="Rows"
"DESCRIPTION 1"="If you press ALT+TAB, you perform a so called "Cool Switch"."
"DESCRIPTION 2"="Normally, Windows displays seven columns and three rows in this dialog but you can change these values here."
"DESCRIPTION 3"="To restore the original values, clear both fields."
"DESCRIPTION 4"="Note: These settings have no effect when you are using Windows 95."
"AUTHOR"="Xteq Systems"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@gmx.net."
"COMMENT 2"="Version 1.31"
"COMMENT 4"=" "
"COMMENT 5"="Thanks to Andrew Roberts (alr@autoprt.co.uk) for the bug fix."
'Declaration of some constants
sP="HKCU\Control Panel\Desktop\"
sV1="CoolSwitchColumns"
sv2="CoolSwitchRows"
'Called when the Plugin is started
Sub Plugin_Initialize
i=RegReadValue(sp & sv1)
SetUIElement 1,i
i=RegReadValue(sp & sv2)
SetUIElement 2,i
End Sub
'Called when the Plugin should validate the Data the user has entered
Sub Plugin_CheckData(ElementIndex)
End Sub
Sub Plugin_Apply(ElementIndex,ElementSubIndex)
'//Always activate CoolSwitch
Call RegWriteValue(sp & "CoolSwitch","1",1)
i=GetUIElement(1)
Call WriteStuff(sp & sv1,i)
i=GetUIElement(2)
Call WriteStuff(sp & sv2,i)
Call Restart
End Sub
Sub WriteStuff(Path,Value)
if len(value)>0 then
'Activate it (note: changed from DWORD to STRING - work for NT machines)
Call RegWriteValue(Path,Value,1)
else
'Deactivate it!
s=RegReadValue(Path)
if IsEmpty(s)=false then
'Value exists
Call RegDeleteValue(Path)
end if
end if
End Sub
'Called when the Plugin is about to be removed from memory
Sub Plugin_Terminate
End Sub